# 6: TRACE
# 5: VERBOSE
# 4: DEBUG
# 3: INFO
# 2: WARN
# 1: ERROR

log ?= 6
cpu ?=
dbg ?= 1
toolchain ?=

out := $(shell pwd)/build


.PHONY : jlib test proxy install clean


jlib :
	make -C jlib log=$(log) cpu=$(cpu) dbg=$(dbg) out=$(out) toolchain=$(toolchain)

test:
	make -C jlib log=$(log) cpu=$(cpu) dbg=$(dbg) out=$(out) toolchain=$(toolchain) test

proxy :
	make -C proxy log=$(log) cpu=$(cpu) dbg=$(dbg) out=$(out) toolchain=$(toolchain)

install : jlib
	make -C jlib install out=$(out)

clean :
	rm -rf $(out)


